package org.r.items.tally.db.remote.consumer.test;

import jakarta.annotation.Resource;
import org.apache.dubbo.config.annotation.DubboService;
import org.r.items.tally.consumer.api.test.ConsumerTestRemote;
import org.r.items.tally.db.service.test.DemoUserService;
import org.r.items.tally.table.test.DemoUserTable;

@DubboService
public class ConsumerTestRemoteImpl  implements ConsumerTestRemote {

    @Resource
    private DemoUserService demoUserService;

    @Override
    public String sayHello() {
        return "Hello,Sally";
    }

    @Override
    public DemoUserTable getOneById(Long id) {
        return demoUserService.getById(id);
    }
}
